<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 5 Transitional//EN">
<%@page import="java.util.ArrayList"%>
<%@page import="jp.co.technotree.apl.cmd.action.Act1100Bean"%>
<%@ page pageEncoding="UTF-8" %>
<jsp:useBean id="formBean" class="jp.co.technotree.apl.cmd.action.Act1100Bean" scope="request" />
<%@page import="jp.co.technotree.apl.api.common.FwCom"%>

<html>
<head>

<%

	String actionDate = formBean.getActionDate();

%>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="apple-mobile-web-app-capable" content="yes"/>
<link rel='stylesheet' type='text/css' href='../../common/css/action/act1100.css' >
<script language='javascript' src='../../common/js/iscroll.js'></script>
<script language='javascript' src='../../common/js/action/act1100.js'></script>

<style type="text/css">

/********************************
 * 警告
 ********************************/
.opBoard{
	position:absolute;
	top :300px;
	left:320px;
	 visibility: visible;
	  background: -webkit-gradient(linear, left top, left bottom, from(#D5D7D1), to(#ffffff));
	 -webkit-border-radius:3px;
	 border: 4px solid black;
	z-index:6;



	 width: 400px;
	 height:150px;
	 font-size:18px;

}

.opBoardButtom{
	position:absolute;
	top :450px;
	left:320px;
	 visibility: visible;
	 background-color:#66ccff;
	 -webkit-border-radius:5px;
	 border: 4px solid black;
	z-index:6;
	 width: 400px;
	 height:60px;
	 background-image: -webkit-gradient(linear, left top, left bottom, from(#333333), to(#333333));
	color: #fff;

}

.opBoardTop{
	position:absolute;
	top :260px;
	left:320px;
	 visibility: visible;
	 background-color:#66ccff;
	 -webkit-border-radius:5px;
	 border: 4px solid black;
	z-index:6;
	 width: 400px;
	 height:40px;
	 background-image: -webkit-gradient(linear, left top, left bottom, from(#333333), to(#333333));
	color: #fff;
}

.opBoardBtn{
	position:absolute;
	 z-index:7;

	top :440px;
	left:580px;
	 visibility: visible;
	color: #fff;

}

.opBtn{
	position:absolute;
	 visibility: visible;
	z-index:6;
	width: 120px;
	height: 40px;
	margin-top:1px;
	background-image: -webkit-gradient(linear, left top, left bottom, from(#7ea0d3), to(#2f6fb7),color-stop(0.7,#3d76bb));
	color: #fff;
	font-weight:bold;
	text-shadow: -1px 2px rgba(0,0,0,0.2);
	font-size:18px;
	-webkit-border-radius:10px;



}
.btnNo{
	position:absolute;
	 visibility: visible;
	z-index:6;
	width: 120px;
	height: 40px;
	margin-top:1px;
	background-image: -webkit-gradient(linear, left top, left bottom, from(#7ea0d3), to(#2f6fb7),color-stop(0.7,#3d76bb));
	color: #fff;
	font-weight:bold;
	text-shadow: -1px 2px rgba(0,0,0,0.2);
	font-size:18px;
	-webkit-border-radius:10px;
}
.btnYes{
	position:absolute;
	 visibility: visible;
	z-index:6;
	width: 120px;
	height: 40px;
	margin-top:1px;
	background-image: -webkit-gradient(linear, left top, left bottom, from(#7ea0d3), to(#2f6fb7),color-stop(0.7,#3d76bb));
	color: #fff;
	font-weight:bold;
	text-shadow: -1px 2px rgba(0,0,0,0.2);
	font-size:18px;
	-webkit-border-radius:10px;
	right:200px;
}

/********************************
 * パップアップ時に背景
 ********************************/
.allbackgr{
	position:absolute;
	z-index:5;
	top :0px;
	left:0px;
	visibility: visible;
    background-color:gray;
    opacity:0.5;
	color: #fff;
	width: 100%;
	height:100%

}
</style>



<script language='javascript'>


//画面固定
document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false);


function nowTime1(){

	var now = new Date();

	var hour = now.getHours(); // 時
	var min = now.getMinutes(); // 分
	var sec = now.getSeconds(); // 秒


	if(hour < 10) { hour = "0" + hour; }
	if(min < 10) { min = "0" + min; }
	if(sec < 10) { sec = "0" + sec; }


    document.getElementById("operStartTime").value = hour + ':' + min;

}

function nowTime2(){

	var now = new Date();

	var hour = now.getHours(); // 時
	var min = now.getMinutes(); // 分
	var sec = now.getSeconds(); // 秒


	if(hour < 10) { hour = "0" + hour; }
	if(min < 10) { min = "0" + min; }
	if(sec < 10) { sec = "0" + sec; }


    document.getElementById("operEndTime").value = hour + ':' + min;

}


var scroll1 = null;
var scroll2 = null;

//選択されている設備情報のidの値
var curNo = 0;

//現在選択されている設備情報の色を元に戻す
function resetColorCurrentNo(num){
	if(curNo == num){
		//選択されている設備情報と同じ情報をタッチされている場合、処理を終了
		return;
	}
	var curid = 'No.'+curNo;
	var curObj = document.getElementById(curid);
	if(curObj != undefined){
		//存在しているidの場合、色を元に戻す
		curObj.style.color = "";
		//現在選択されている設備情報のidを変数に格納
		curNo = num;
	}
}

//設備情報を上下させるボタンをクリックしたときの共通処理をまとめた関数
//引数：type：prev：上を参照する場合：next：下を参照する場合
function changeCurrentNo(type){
	var num = curNo;
	if(type == "next"){
		num++;
	}else if(type == "prev"){
		num--;
	}
	//現在選択している設備情報のidとオブジェクト取得
	var focusId = "No."+num;
	var focusObj= document.getElementById(focusId);
	//変更後の設備情報のidとオブジェクト取得
	var curId = "No."+curNo;
	var curObj = document.getElementById(curId);
	if(focusObj != undefined && curObj != undefined){
		//現在選択中と、変更先、両方の設備情報が存在している場合、色を変更する
		focusObj.style.color = "#FF8811";
		curObj.style.color = "";
		//選択されている設備情報のidを変更する
		curNo = num;
		//自動スクロール
		autoScroll();
		//値をセット
		setValue();
	}
}

function autoScroll(){
	var dest = "No."+curNo;
	var obj = document.getElementById(dest);
	var y = obj.offsetTop;
	var x = obj.offsetLeft;
	y = -1 * y;
	if(y < scroll1.maxScrollY){
		y = scroll1.maxScrollY;
	}
	if(y > 0){
		y = 0;
	}
	scroll1.scrollTo(x,y,'350ms');
}

function onInit(){


	//最上の設備情報の色を選択されたときの色に変更する
	var No0 = document.getElementById('No.0');
	if(No0 != undefined){
		No0.style.color = "#FF8811";
	}

	/* iScroll */
	scroll1 = new iScroll( 'title_list_scroller',    { desktopCompatibility:false, scrollbarColor: 'rgba(45,74,65,0.5)', move:true } );


	date = new Date();
	y = date.getFullYear();
	m = date.getMonth() + 1;
	d = date.getDate();

	if (m < 10) { m = "0" + m; }
	if (d < 10) { d = "0" + d; }

	var toDay = y + "-" + m + "-" + d;

	//今日の日付を入力
	document.getElementById("date").value = toDay;




	var processObj = document.getElementById("drpProcessNo");
	var equipmentObj = document.getElementById("drpEquipmentCd");

	//ラインコードを子ノードに追加
	for(var i=0;i<processObj.options.length;i++) {

		var option = processObj.options[i];

		allProcessVal[i] = processObj.options[i].value;
		allProcessTxt[i] = processObj.options[i].text;

	}
	//設備機番を子ノードに追加
	for(var i=0;i<equipmentObj.options.length;i++) {

		var option = equipmentObj.options[i];

		allEquipmentVal[i] =  equipmentObj.options[i].value;
		allEquipmentTxt[i] =  equipmentObj.options[i].text;

	}

	//最上の設備情報の各種情報をセットする
	setValue();

	var regist = document.getElementById("regist").value;
	var registType = document.getElementById("registType").value;
	//登録完了
	if(regist == "Y"){
		registComplete(registType);
	}
}


function addClick(index){

	var obj =document.getElementById("a[" + index +"]");


	if(obj.checked){

		obj.checked = false;
	}else{

		obj.checked =true;
	}

}



var Hcount=0;
var SelectCnt = 0;

function addition(){

    var obj = document.getElementById("select07");
    var cnt;


    //SELECT追加
	var html = "";
    var htmlBtn = "";

	html += "<table>\n";

	for(var i=0,cnt=obj.options.length;i<cnt;i++) {
		if( obj.options[i].selected ){

			html += "<tr style='align:left; border: 1px solid #2f6fb7; '>\n";

			html += "	<td id = 'selectName["+ Hcount +"]' onClick='addClick("+ Hcount+");' >\n";
			html += "		<input type='checkbox' id='a["+ Hcount + "]'>";
			html +=  obj.options[i].text;
			html += "	</td>\n";

			html += "</tr>\n";

			Hcount++;
			SelectCnt ++;

		}

	}


	html += "</table>\n";

	htmlBtn += "<table'>\n";
	htmlBtn += "<tr>\n";
	htmlBtn += "	<td  >　　　　　　";
	htmlBtn += "		<button onclick = 'back();' class='backBtn'>閉じる</button>";
	htmlBtn += "		<button onclick = 'dell();' class='delBtn'>削除</button>";
	htmlBtn += "	</td>";

	htmlBtn += "</tr>\n";
	htmlBtn += "</table>\n";

	document.getElementById("addDel").innerHTML = html;

	document.getElementById("addDel_Btn").innerHTML = htmlBtn;



	//作業リスト件数を足す
	document.getElementById("workListBtn").innerHTML = "作業リスト("+ SelectCnt + "件)";
	SelectCnt = 0;

}


function dellist(){

	document.getElementById("addDel").style.display = "inline";
	document.getElementById("addDel_Btn").style.display = "inline";
}



function dell(){
	try{

		var html = "";
	    var htmlBtn = "";

		var dellCnt = 0;

		html += "<table>\n";


		for( i=0; i<Hcount; i++ ){

			if( !document.getElementById("a["+i+"]").checked ){

				html += "<tr style='align:left; border: 1px solid #2f6fb7;'>\n";


				html += "	<td id='selectName["+ dellCnt +"]' onClick='addClick("+ dellCnt+");'>\n";

				html += "		<input type='checkbox' id='a["+ dellCnt + "]'>";
				html += document.getElementById("selectName[" + i +"]").innerText;

				html += "	</td>\n";

				html += "</tr>\n";

				dellCnt++;
			}
		}

		Hcount = dellCnt;


		html += "</table>\n";

		htmlBtn += "<table'>\n";
		htmlBtn += "<tr>\n";
		htmlBtn += "	<td  >　　　　　　";
		htmlBtn += "		<button onclick = 'back();' class='backBtn'>閉じる</button>";
		htmlBtn += "		<button onclick = 'dell();' class='delBtn'>削除</button>";
		htmlBtn += "	</td>";

		htmlBtn += "</tr>\n";
		htmlBtn += "</table>\n";

		document.getElementById("addDel").innerHTML = html;

		document.getElementById("addDel_Btn").innerHTML = htmlBtn;


		//作業リスト件数を足す
		document.getElementById("workListBtn").innerHTML = "作業リスト("+ Hcount + "件)";


	}catch(e){
		alert("tryError:"+e);

	}
}

function back(){

	document.getElementById("addDel").style.display = "none";
	document.getElementById("addDel_Btn").style.display = "none";

	document.getElementById("opBoardBtn").style.display = "none";
	document.getElementById("opBoard").style.display = "none";
	document.getElementById("opBoardButtom").style.display = "none";
	document.getElementById("opBoardTop").style.display = "none";
	document.getElementById("allbackgr").style.display = "none";

}


function previ(){
//	location.href="./../action/act1100.fw";
	changeCurrentNo("prev");
}

function next(){
//	location.href="./../action/act1000.fw";
	changeCurrentNo("next");
}

var startTime;
var cntIntv=0;

//interval
var ret = "";
var strId;

//長押し処理
var holdClass = function(e,id){
	if(e == "touchstart"){

		var now = new Date();

		startTime = now;

		if(ret == ""){
			ret = setInterval("holdStatus();",1000);
		}

	}else if (e=="touchend"){
		if(ret != ""){
			clearInterval(ret);
		}
		ret = "";
	}else{

		strId = id;
	}

};


function holdStatus(){
	cntIntv++;
	if(cntIntv >= 2){
		if(ret != ""){
			clearInterval(ret);
		}
		ret = "";
		cntIntv=0;
		setValue(strId);
	}
}

//各入力フォームに設備情報から取得した値をセット
function setValue(target){
	//取得先の設備情報のNo
	var getNo = "No."+curNo;
	//取得先を指定されている場合、参照先のidを入れ替える
	if(target != undefined && target != ""){
		getNo = target;
	}
	var selected2 =document.getElementById("humanId");
	var selected3 =document.getElementById("drpLoginNm");
	var selected4 =document.getElementById("drpLineNm");
	var selected5 =document.getElementById("drpProcessNo");
	var selected6 =document.getElementById("drpEquipmentCd");
	var selected7 =document.getElementById("txtStartTime");
	var selected8 =document.getElementById("txtEndTime");
	var selected9 =document.getElementById("drpLossNm");
	var selected10=document.getElementById("drpWorkNm1");
	var selected11=document.getElementById("drpWorkNm2");
	var selected12=document.getElementById("txtNote");

	//タッチしている設定情報の各値を取得
	var data2 =document.getElementById(getNo+"HumanId");
	var data3 =document.getElementById(getNo+"DrpLoginNm");
	var data4 =document.getElementById(getNo+"DrpLineNm");
	var data5 =document.getElementById(getNo+"DrpProcessNo");
	var data6 =document.getElementById(getNo+"DrpEquipmentCd");
	var data7 =document.getElementById(getNo+"TxtStartTime");
	var data8 =document.getElementById(getNo+"TxtEndTime");
	var data9 =document.getElementById(getNo+"DrpLossNm");
	var data10=document.getElementById(getNo+"DrpWorkNm1");
	var data11=document.getElementById(getNo+"DrpWorkNm2");
	var data12=document.getElementById(getNo+"TxtNote");
	//カウンタ
	var i=0;
	//管理IDを格納
	if(selected2 != undefined && data2 != undefined){
		selected2.value = data2.value;
	}
	//入力者を変更
	i=0;
	if(selected3 != undefined && data3 != undefined){
		while(selected3.options[i] != undefined){
			if(selected3.options[i].value == data3.value){
				selected3.selectedIndex = i;
				break;
			}
			i++;
		}
	}
	//ライン名を変更
	i=0;
	if(selected4 != undefined && data4 != undefined){
		while(selected4.options[i] != undefined){
			if(selected4.options[i].value == data4.value){
				selected4.selectedIndex = i;
				break;
			}
			i++;
		}
		//変更後、工程Noと設備情報のドロップボックスの選択肢を変更
		lineSideDell(selected4);
	}
	//工程No
	i=0;
	if(selected5 != undefined && data5 != undefined){
		while(selected5.options[i] != undefined){
			if(selected5.options[i].text == data5.value){
				selected5.selectedIndex = i;
				break;
			}
			i++;
		}
	}
	//設備情報
	i=0;
	if(selected6 != undefined && data6 != undefined){
		while(selected6.options[i] != undefined){
			if(selected6.options[i].text == data6.value){
				selected6.selectedIndex = i;
				break;
			}
			i++;
		}
	}
	//作業開始時間
	if(selected7 != undefined && data7 != undefined){
		selected7.value = data7.value;
	}
	//作業終了時間
	if(selected8 != undefined && data8 != undefined){
		selected8.value = data8.value;
	}
	//ロス区分
	i=0;
	if(selected9 != undefined && data9 != undefined){
		while(selected9.options[i] != undefined){
			if(selected9.options[i].value == data9.value){
				selected9.selectedIndex = i;
				//作業内容①を絞り込む
				lossSideDell(selected9);
				break;
			}
			i++;
		}
	}
	//作業内容①
	i=0;
	var tmpJoin = "";
	if(selected10 != undefined && data9 != undefined && data10 != undefined){
		while(selected10.options[i] != undefined){
			tmpJoin = data9.value+","+data10.value;
			if(selected10.options[i].value == tmpJoin){
				selected10.selectedIndex = i;
				//作業内容②を絞り込む
				Work1SideDell(selected10);
				break;
			}
			i++;
		}
	}
	//作業内容②
	i=0;
	var tmpJoin = "";
	var tmpList = null;
	var j=0;
	if(selected11 != undefined && data11 != undefined){
		tmpList = data11.value.split(",");
		while(selected11.options[i] != undefined){
			j=0;
			while(tmpList[j] != undefined){
				if(selected11.options[i].value == tmpList[j]){
					selected11.options[i].selected = true;
					break;
				}
				j++;
			}
			i++;
		}
	}
	//備考
	if(selected12 != undefined && data12 != undefined){
		selected12.value = data12.value;
	}
}

function tt(obj){

	//alert("aaa");
}


function mainMenu(){

	location.href="./../top/top2000.fw";
}

function nextPageJump(nextPage){
	mainForm = document.getElementById("F1");
	document.getElementById("nextPage").value = nextPage;
	mainForm.submit();
}

//全工程コード
var allProcessVal = new Array();
var allProcessTxt =  new Array();

//全設備機番コード
var allEquipmentVal = new Array();
var allEquipmentTxt =  new Array();


//equipment全リスト情報
/*
function equipList(){

	var processObj = document.getElementById("drpProcessNo");
	var equipmentObj = document.getElementById("drpEquipmentCd");


//全子ノード削除
	//工程コード
	for(var i= processObj.childNodes.length-1; i >= 0;i--) {
		processObj.removeChild(processObj.childNodes[i]);
	}
	//設備機番
	for(var i= equipmentObj.childNodes.length-1; i >= 0;i--) {
		equipmentObj.removeChild(equipmentObj.childNodes[i]);
	}


	//リスト追加(工程コード)
	for(var i=0; i<allProcessVal.length; i++){

		//optionのvalue属性にセット(key)
		var ele = document.createElement("option");
		ele.value = allProcessVal[i];

		//optionにセット(value)
		var str = document.createTextNode(allProcessTxt[i]);
		ele.appendChild(str);

		processObj.appendChild(ele);
	}

	//リスト追加(設備機番)
	for(var i=0; i<allEquipmentVal.length; i++){

		//optionのvalue属性にセット(key)
		var ele = document.createElement("option");
		ele.value = allEquipmentVal[i];

		//optionにセット(value)
		var str = document.createTextNode(allEquipmentTxt[i]);
		ele.appendChild(str);

		equipmentObj.appendChild(ele);
	}
}
*/

//子ノード削除
/*
function selectDel(Obj){

	var strObject = document.getElementById(Obj);

	for(var i= strObject.childNodes.length-1; i >= 0;i--) {
		strObject.removeChild(strObject.childNodes[i]);
	}
}
*/

//子ノード作成
/*
function selectIn(obj,arrVar,arrTxt){
	var strObject = document.getElementById(obj);

	for(var k=0; k < arrVar.length; k++){

		//optionのvalue属性にセット(key)
		var ele = document.createElement("option");
		ele.value = arrVar[k];
		//optionにセット(value)
		var str = document.createTextNode(arrTxt[k]);
		ele.appendChild(str);

		strObject.appendChild(ele);

	}
}
*/

/*
function lineSideDell(obj){  //ラインコードを選択すると「工程コード、設備機番」のデータを消込

	equipList();

	var lineObj = document.getElementById("drpLineNm");
	var processObj = document.getElementById("drpProcessNo");
	var equipmentObj = document.getElementById("drpEquipmentCd");

	processObj.value = "";
	equipmentObj.value = "";

	var lineIndex = lineObj.selectedIndex;
	//選択されたラインコード
	var lineValue =lineObj.options[lineIndex].value;

	var KeeCnt = 1;
	var delCnt = 0;

	//該当する工程コード
	var keepProcessVal = new Array();
	var keepProcessTxt =  new Array();

	//削除する工程コード
	var delProcessVal = new Array();
	var delProcessTxt =  new Array();

	//該当する設備機番
	var keepEquipmentVal = new Array();
	var keepEquipmentTxt =  new Array();

	//削除する設備機番
	var delEquipmentVal = new Array();
	var delEquipmentTxt =  new Array();

	//ラインコードに該当する工程コードを分ける
	for(var i=0;i<processObj.options.length;i++) {
		var option = processObj.options[i];

		if(lineValue == option.value){

			//最初は空白option(工程コード)
			keepProcessVal[0] = "";
			keepProcessTxt[0] = "";

			keepProcessVal[KeeCnt]  = processObj.options[i].value;
			keepProcessTxt[KeeCnt]  = processObj.options[i].text;

			//最初は空白option(設備機番)
			keepEquipmentVal[0] = "";
			keepEquipmentTxt[0] = "";

			keepEquipmentVal[KeeCnt]  = equipmentObj.options[i].value;
			keepEquipmentTxt[KeeCnt]  = equipmentObj.options[i].text;

			KeeCnt ++;
		}else{
			//工程コード
			delProcessVal[delCnt] = processObj.options[i].value;
			delProcessTxt[delCnt]  = processObj.options[i].text;

			//設備機番
			delEquipmentVal[delCnt]  = equipmentObj.options[i].value;
			delEquipmentTxt[delCnt]  = equipmentObj.options[i].text;
			delCnt ++;
		}
	}

	//子ノードを削除
	selectDel("drpProcessNo");
	selectDel("drpEquipmentCd");

	//子ノードを作成
	selectIn("drpProcessNo",keepProcessVal,keepProcessTxt);
	selectIn("drpEquipmentCd",keepEquipmentVal,keepEquipmentTxt);

}
*/
//===========================================
//ライン名を変更した場合の処理
//===========================================
function lineSideDell(obj){
	var lineCd = obj.options[obj.selectedIndex].value;
	var proCd  = document.getElementById("drpProcessNo");
	var equCd  = document.getElementById("drpEquipmentCd");
	if(lineCd != undefined && proCd != undefined && equCd != undefined){
		while(proCd.length > 0)proCd.removeChild(proCd.lastChild);
		while(equCd.length > 0)equCd.removeChild(equCd.lastChild);
		var getProEquList = changeLineCdProcessCdEquipmentCd(lineCd,"","","line_cd");
		for(var k in getProEquList){
			if(k == "process_cd"){
				targetObj = proCd;
			}else if(k == "equipment_cd"){
				targetObj = equCd;
			}
			targetCdList = getProEquList[k];
			//===========================================
			// ドロップボックスに空の選択肢を追加
			//===========================================
			//<option>タグを作成
			inputOpt = document.createElement("option");
			inputOpt.value = '';
			//ドロップボックスに追加
			targetObj.appendChild(inputOpt);
			for(var i=0;i<targetCdList.length;i++){
				//===========================================
				// 設備機番のドロップボックスの選択肢を追加
				//===========================================
				//<option>タグを作成
				inputOpt = document.createElement("option");
				inputOpt.value = targetCdList[i];
				//<option></option>の間に挟む文字列作成
				inputOptTxt = document.createTextNode(targetCdList[i]);
				inputOpt.appendChild(inputOptTxt);
				//ドロップボックスに追加
				targetObj.appendChild(inputOpt);
			}
		}
	}
}
//===========================================
// 設備機番を変更した場合の処理
//===========================================
function equipSideDell(obj){
	commonChProCdEquCd("process_cd",obj);
}

//===========================================
// 工程NOを変更した場合の処理
//===========================================
function processSideDell(obj){
	commonChProCdEquCd("equipment_cd",obj);
}

//===========================================
// 工程NO、設備機番、変更されたときの共通処理
//===========================================
function commonChProCdEquCd(target,obj){
	var slsEquCd = "";
	var slsProCd = "";
	var targetId = "";
	var selectedEmptyFlg = 0;
	if(target == "equipment_cd"){
		slsProCd = obj.options[obj.selectedIndex].value;
		targetId = "drpEquipmentCd";
		if(slsProCd == ""){
			selectedEmptyFlg = 1;
		}
	}else if(target == "process_cd"){
		slsEquCd = obj.options[obj.selectedIndex].value;
		targetId = "drpProcessNo";
		if(slsEquCd == ""){
			selectedEmptyFlg = 1;
		}
	}
	var lineObj		= document.getElementById("drpLineNm");
	var targetObj	= document.getElementById(targetId);
	if(lineObj != undefined && targetObj != undefined){
		if(selectedEmptyFlg == 0){
			var slsLineCd = lineObj.options[lineObj.selectedIndex].value;
			var targetCdList = changeLineCdProcessCdEquipmentCd(slsLineCd,slsProCd,slsEquCd,target);
			//===========================================
			// 工程NO、設備機番、対応したのが選択されるように
			//===========================================
			for(var i=0;i<targetObj.length;i++){
				if(targetObj.options[i].value == targetCdList[0]){
					targetObj.selectedIndex = i;
				}
			}
		}else{
			targetObj.selectedIndex = 0;
		}
/*
		//===========================================
		// 空っぽにする
		//===========================================
		while(targetObj.length > 0)targetObj.removeChild(targetObj.lastChild);
		//===========================================
		// 設備機番のドロップボックスに空の選択肢を追加
		//===========================================
		//<option>タグを作成
		inputOpt = document.createElement("option");
		inputOpt.value = '';
		//ドロップボックスに追加
		targetObj.appendChild(inputOpt);
		for(var i=0;i<targetCdList.length;i++){
			//===========================================
			// 設備機番のドロップボックスの選択肢を追加
			//===========================================
			//<option>タグを作成
			inputOpt = document.createElement("option");
			inputOpt.value = targetCdList[i];
			//<option></option>の間に挟む文字列作成
			inputOptTxt = document.createTextNode(targetCdList[i]);
			inputOpt.appendChild(inputOptTxt);
			//ドロップボックスに追加
			targetObj.appendChild(inputOpt);
		}
*/
	}
}

//===========================================
// ライン名と工程NOと設備機番が変更された時の処理
//===========================================
function changeLineCdProcessCdEquipmentCd(slsLineCd,slsProcessCd,slsEquipmentCd,returnCd){
	//ライン名と工程NOと設備機番の配列
	var equipmentList = [];
	<%
	//java側から渡されたライン名と工程NOと設備機番のリストを文字列に結合して配列に格納する
	Act1100Bean.equipmentData[] equipmentList  = formBean.getEquipmentList();
	//取得できた情報の分だけループする
	for(int i=0; i<equipmentList.length; i++){
		Act1100Bean.equipmentData data = equipmentList[i];
	%>
	if(equipmentList.indexOf("<%=data.line_cd%>_____<%=data.process_cd%>_____<%=data.equipment_cd%>")==-1){equipmentList.push("<%=data.line_cd%>_____<%=data.process_cd%>_____<%=data.equipment_cd%>");}
	<%
		}
	%>
	//===========================================
	// 正規表現のパターンを作成
	//===========================================
	var target = "";
	if(slsLineCd != undefined && slsLineCd != ''){
		//ライン名が送られている場合
		target += slsLineCd+"_____";
	}else{
		target += ".*_____";
	}
	if(slsProcessCd != undefined && slsProcessCd != ''){
		//工程NOが送られている場合
		target += slsProcessCd+"_____";
	}else{
		target += ".*_____";
	}
	if(slsEquipmentCd != undefined && slsEquipmentCd != ''){
		//設備機番が送られている場合
		target += slsEquipmentCd;
	}else{
		target += ".*";
	}
	var getLineCdList		= {};
	var getProcessCdList	= [];
	var getEquipmentCdList	= [];
	re = new RegExp(target);
	for(var i=0;i<equipmentList.length;i++){
		if(equipmentList[i].match(re)){
			//正規表現のパターンに合致した場合
			tmp = equipmentList[i].split("_____");
			getProcessCdList.push(tmp[1]);
			getEquipmentCdList.push(tmp[2]);
		}
	}
	var result = null;
	if(returnCd != undefined){
		switch(returnCd){
			case "line_cd":
				getLineCdList["process_cd"]		= getProcessCdList;
				getLineCdList["equipment_cd"]	= getEquipmentCdList;
				result = getLineCdList;
				break;
			case "process_cd":
				result = getProcessCdList;
				break;
			case "equipment_cd":
				result = getEquipmentCdList;
				break;
		}
	}
	return result;
}
//===========================================
// ロス区分と作業内容①と作業内容②が変更された時の処理
//===========================================
function changeLossCdWorkCd1Cd2(slsLossCd,slsWorkCd1,slsWorkCd2,returnCd){
	//ロスコードとロス名の連想配列
	var lossList = {
	<%
		Act1100Bean.workInfoData[] lossList = formBean.getWorkInfoList();
		for (int i = 0; lossList != null && i < lossList.length; i++) {
			Act1100Bean.workInfoData data = lossList[i];
	%>
	<%if(i>0){%>,<%}%>"<%=data.loss_cd%>":"<%=FwCom.nullToBlank(data.loss_nm)%>"
	<%
		}
	%>
	};
	//作業コード①と作業コード名①の連想配列
	var workCd1List = {
	<%
		Act1100Bean.workInfoData[] workCd1List = formBean.getWorkInfoList();
		for (int i = 0; workCd1List != null && i < workCd1List.length; i++) {
			Act1100Bean.workInfoData data = workCd1List[i];
	%>
	<%if(i>0){%>,<%}%>"<%=data.loss_cd%>_<%=FwCom.nullToBlank(data.work_cd1)%>":"<%=FwCom.nullToBlank(data.work_nm1)%>"
	<%
		}
	%>
	};
	//作業コード②と作業コード名②の連想配列
	var workCd2List = {
	<%
		Act1100Bean.workInfoData[] workCd2List = formBean.getWorkInfoList();
		int arrCnt = 0;
		for (int i = 0; workCd2List != null && i < workCd2List.length; i++) {
			Act1100Bean.workInfoData data = workCd2List[i];
			if(!"".equals(FwCom.nullToBlank(data.work_cd2))){
	%>
	<%if(arrCnt>0){%>,<%}%>"<%=data.loss_cd%>_<%=FwCom.nullToBlank(data.work_cd1)%>_<%=FwCom.nullToBlank(data.work_cd2)%>":"<%=FwCom.nullToBlank(data.work_nm2)%>"
	<%
				arrCnt++;
			}
		}
	%>
	};
	//ロスコードと作業コード①、②を特定文字で結合した文字列を格納した配列。ドロップボックスの選択肢変更処理に使う
	var workInfoList = [];
	<%
		//java側から渡されたロスコードと作業コード①、②のリストを文字列に結合して配列に格納する
		Act1100Bean.workInfoData[] workInfoList  = formBean.getWorkInfoList();
		//取得できた情報の分だけループする
		for(int i=0; i<workInfoList.length; i++){
			Act1100Bean.workInfoData data = workInfoList[i];
	%>
	if(workInfoList.indexOf("<%=data.loss_cd%>_____<%=FwCom.nullToBlank(data.work_cd1)%>_____<%=FwCom.nullToBlank(data.work_cd2)%>")==-1){workInfoList.push("<%=data.loss_cd%>_____<%=FwCom.nullToBlank(data.work_cd1)%>_____<%=FwCom.nullToBlank(data.work_cd2)%>");}
	<%
		}
	%>
	//===========================================
	// 正規表現のパターンを作成
	//===========================================
	var target = "";
	if(slsLossCd != undefined && slsLossCd != ''){
		//ロスコードが送られている場合
		target += slsLossCd+"_____";
	}else{
		target += ".*_____";
	}
	if(slsWorkCd1 != undefined && slsWorkCd1 != ''){
		//作業コード①が送られている場合
		target += slsWorkCd1+"_____";
	}else{
		target += ".*_____";
	}
	if(slsWorkCd2 != undefined && slsWorkCd2 != ''){
		//作業コード②が送られている場合
		target += slsWorkCd2;
	}else{
		target += ".*";
	}

	//作業用一時保存変数
	var tmp = [];
	var tmpLossCd = "";
	var tmpWorkCd1= "";
	var tmpWorkCd2= "";

	//正規表現のパターンに合致する各コードを格納する変数
	var getLossCd = "";
	var getWorkCd1= "";
	var getWorkCd2= "";
	var getLossCdList = {};
	var getWorkCd1List= {};
	var getWorkCd2List= {};
	var getLossCdWorkCd1List = {};
	var tmpKey1="";
	var tmpKey2="";
	var tmpKey3="";

	re = new RegExp(target);
	for(var i=0;i<workInfoList.length;i++){
		if(workInfoList[i].match(re)){
			//正規表現のパターンに合致した場合
			tmp = workInfoList[i].split("_____");
			tmpLossCd = tmp[0];
			tmpWorkCd1= tmp[1];
			tmpWorkCd2= tmp[2];
//			getLossCdList[tmpLossCd] = lossList[tmpLossCd];
//			getWorkCd1List[tmpWorkCd1] = workCd1List[tmpLossCd+"_"+tmpWorkCd1];
//			getWorkCd2List[tmpWorkCd2] = workCd2List[tmpLossCd+"_"+tmpWorkCd1+"_"+tmpWorkCd2];

			tmpKey1 = tmpLossCd;
			tmpKey2 = tmpLossCd+"_"+tmpWorkCd1;
			tmpKey3 = tmpLossCd+"_"+tmpWorkCd1+"_"+tmpWorkCd2;

			getLossCdList[tmpKey1]  = {"text":lossList[tmpKey1],"value":tmpLossCd};
			getWorkCd1List[tmpKey2] = {"text":workCd1List[tmpKey2],"value":tmpWorkCd1};
			getWorkCd2List[tmpKey3] = {"text":workCd2List[tmpKey3],"value":tmpWorkCd2};

			getLossCdWorkCd1List[tmpKey2] = {"text":workCd1List[tmpKey2],"value":tmpLossCd+","+tmpWorkCd1};
		}
	}
	var result = null;
	if(returnCd != undefined){
		switch(returnCd){
			case "loss_cd":
				result = getLossCdList;
				break;
			case "work_cd1":
				result = getWorkCd1List;
				break;
			case "work_cd2":
				result = getWorkCd2List;
				break;
			case "loss_cd_work_cd1":
				result = getLossCdWorkCd1List;
				break;
		}
	}
	return result;
}
//===========================================
// ロス区分が変更されたときに実行する処理
//===========================================
function lossSideDell(obj){
	// 現在選択しているロスコードを取得
	var slsLossCd = obj.options[obj.selectedIndex].value;
	// 作業内容①を空っぽにする
	var workCd1Obj= document.getElementById("drpWorkNm1");
	while(workCd1Obj.length > 0)workCd1Obj.removeChild(workCd1Obj.lastChild);
	// 作業内容②を空っぽにする
	var workCd2Obj= document.getElementById("drpWorkNm2");
	while(workCd2Obj.length > 0)workCd2Obj.removeChild(workCd2Obj.lastChild);
	// 選択したロスコードに属する作業内容①を取得する
	var tmpWorkCd1List = changeLossCdWorkCd1Cd2(slsLossCd,'','','loss_cd_work_cd1');
	//作業コード①の値を送信用エレメントにセットする
	document.getElementById("postDrpWorkNm1").value = '';
	//===========================================
	// 作業内容①のドロップボックスに空の選択肢を追加
	//===========================================
	//<option>タグを作成
	inputOpt = document.createElement("option");
	inputOpt.value = '';
	//ドロップボックスに追加
	workCd1Obj.appendChild(inputOpt);
	for(var i in tmpWorkCd1List){
		//===========================================
		// 作業内容①のドロップボックスの選択肢を追加
		//===========================================
		//<option>タグを作成
		inputOpt = document.createElement("option");
		inputOpt.value = tmpWorkCd1List[i]["value"];
		//<option></option>の間に挟む文字列作成
		inputOptTxt = document.createTextNode(tmpWorkCd1List[i]["text"]);
		inputOpt.appendChild(inputOptTxt);
		//ドロップボックスに追加
		workCd1Obj.appendChild(inputOpt);
	}
}
//===========================================
// 作業コード①の値が変更されたときの処理
//===========================================
function Work1SideDell(obj){
	// 現在選択している作業コード①を取得
	var tmpSlsJoinCd			= obj.options[obj.selectedIndex].value;
	var tmpSlsJoinCdList		= tmpSlsJoinCd.split(",");
	var slsLossCdFromWorkCd1	= tmpSlsJoinCdList[0];
	var slsWorkCd1				= tmpSlsJoinCdList[1];
	var lossCdObj				= document.getElementById("drpLossNm");					// 現在選択しているロスコードを取得
	var slsLossCd				= lossCdObj.options[lossCdObj.selectedIndex].value;
	var setObj					= document.getElementById("postDrpWorkNm1");
	//作業コード①の値を送信用エレメントにセットする
	if(slsWorkCd1 != undefined){
		setObj.value = slsWorkCd1;
	}else{
		setObj.value = "";
	}
	// ロスコードが無指定の場合、作業コード①からロスコードを抽出する
	if(slsLossCd == ''){
		//ロスコードが無指定の場合
		var tmpLossCdList = changeLossCdWorkCd1Cd2(slsLossCdFromWorkCd1,slsWorkCd1,'','loss_cd');
		//一番最初に取得したロスコードを変数に代入
		for(var i in tmpLossCdList){
			slsLossCd = tmpLossCdList[i]["value"];
			break;
		}
		for(var i=0;i < lossCdObj.options.length;i++){
			if(lossCdObj.options[i].value == slsLossCd){
				lossCdObj.selectedIndex = i;
			}
		}
		//作業コード①の選択肢を絞り込む
		lossSideDell(lossCdObj);
		for(var i=0;i < obj.options.length;i++){
			if(obj.options[i].value == tmpSlsJoinCd){
				obj.selectedIndex = i;
			}
		}
	}
	var tmpWorkCd2List = changeLossCdWorkCd1Cd2(slsLossCd,slsWorkCd1,'','work_cd2');
	//作業内容②を空っぽにする
	var workCd2Obj= document.getElementById("drpWorkNm2");
	while(workCd2Obj.length > 0)workCd2Obj.removeChild(workCd2Obj.lastChild);
	for(var i in tmpWorkCd2List){
		if(tmpWorkCd2List[i]["text"] != undefined){
			//===========================================
			// 作業内容②のドロップボックスの選択肢を追加
			//===========================================
			//<option>タグを作成
			inputOpt = document.createElement("option");
			inputOpt.value = tmpWorkCd2List[i]["value"];
			//<option></option>の間に挟む文字列作成
			inputOptTxt = document.createTextNode(tmpWorkCd2List[i]["text"]);
			inputOpt.appendChild(inputOptTxt);
			//ドロップボックスに追加
			workCd2Obj.appendChild(inputOpt);
		}
	}
}
//===========================================
// 修正ボタンを押下
//===========================================
function doMessage(obj){

	var humanId = "";
	if(document.getElementById('humanId') != undefined){
		humanId = document.getElementById('humanId').value;
	}
	if(humanId == ""){
		existsDatatChk(obj);
		return;
	}

	updateConfirm(obj);
}

function doUpdate(){

	var adminKbn     = document.getElementById('adminKbn').value;
	//登録者権限チェック
	if(adminKbn == "2"||adminKbn == "1"){
		//権限が一般の場合
		inputChk2();
		return;
	}
	//フォームタグのオブジェクトを取得
	var frm         = document.getElementById("F1");
	if(document.getElementById('humanId') != undefined){
		var humanId = document.getElementById('humanId').value;
	}else{
		var humanId = "";
	}
	if(document.getElementById('drpLoginNm') != undefined){
		var loginNm = document.getElementById('drpLoginNm').value;
	}else{
		var loginNm = "";
	}
	if(document.getElementById('drpLineNm') != undefined){
		var lineNm = document.getElementById('drpLineNm').value;
	}else{
		var lineNm = "";
	}
	if(document.getElementById('drpProcessNo') != undefined){
		var processNo = document.getElementById('drpProcessNo').value;
	}else{
		var processNo = "";
	}
	if(document.getElementById('drpEquipmentCd') != undefined){
		var equipmentCd = document.getElementById('drpEquipmentCd').value;
	}else{
		var equipmentCd = "";
	}
	if(document.getElementById('txtStartTime') != undefined){
		var startTime = document.getElementById('txtStartTime').value;
	}else{
		var startTime = "";
	}
	if(document.getElementById('txtEndTime') != undefined){
		var endTime = document.getElementById('txtEndTime').value;
	}else{
		var endTime = "";
	}
	if(document.getElementById('drpLossNm') != undefined){
		var lossNm = document.getElementById('drpLossNm').value;
	}else{
		var lossNm = "";
	}
	if(document.getElementById('postDrpWorkNm1') != undefined){
		var workNm1 = document.getElementById('postDrpWorkNm1').value;
	}else{
		var workNm1 = "";
	}
	var workNm2     = document.getElementById('drpWorkNm2');
	var workNm2Post = document.getElementById('postDrpWorkNm2');
	var workTime    = document.getElementById('workTime');

	//作業時間計算
	if(startTime != undefined && endTime != undefined && workTime != undefined){
		var time1 = startTime;
		var time2 = endTime;
		var timeList1 = time1.split(":");
		var timeList2 = time2.split(":");
		var stTime = (eval(timeList1[0]) * 60) + eval(timeList1[1]);
		var enTime = (eval(timeList2[0]) * 60) + eval(timeList2[1]);
		var diffTime = enTime - stTime;
		var diffMin  = eval(diffTime) % 60;
		var diffHour = (eval(diffTime) - eval(diffMin)) / 60;
		var convDiffMin = null;
		if(diffMin < 10){
			convDiffMin = "0"+diffMin;
		}else{
			convDiffMin = diffMin;
		}
		var convDiffHour = null;
		if(diffHour < 10){
			convDiffHour = "0"+diffHour;
		}else{
			convDiffHour = diffHour;
		}
		workTime.value = convDiffHour+":"+convDiffMin;
	}
	if(workNm2 != undefined && workNm2Post != undefined){
		var joinStr="";
		var workCd2ChkCnt = 0;
		for(var i=0;i<workNm2.length;i++){
			if(workNm2.options[i].selected == true){
				if(workNm2.options[i].value != ""){
					if(joinStr != ""){
						joinStr += ",";
					}
					joinStr += workNm2.options[i].value;
				}
				workCd2ChkCnt++;
			}
		}
		workNm2Post.value = joinStr;
		if(workCd2ChkCnt > 5){
			selectMultiChk();
			return;
		}
	}
	//空白チェック
	if(humanId==""){
		existsDatatChk('update');
		return;
	}else if(loginNm==""){
		inputChk("Worker name.");
		return;
	}else if(lineNm==""){
		inputChk("Line name.");
		return;
	}else if(processNo==""){
		inputChk("Process No.");
		return;
	}else if(equipmentCd==""){
		inputChk("Equipment No.");
		return;
	}else if(startTime==""){
		inputChk("Operation start time.");
		return;
	}else if(endTime==""){
		inputChk("End time.");
		return;
	}else if(lossNm==""){
		inputChk("Loss type.");
		return;
	}else if(workNm1==""){
		inputChk("method(1).");
		return;
	}else{
		var submitType  = document.getElementById('submitType');
		submitType.value = "update";
		frm.submit();
	}
/*
	if(humanId==""||loginNm==""||lineNm==""||processNo==""||equipmentCd==""||startTime==""||endTime==""||lossNm==""||workNm1==""){
		var inputChkMsg = "";
		var inputChkArr = [];
		if(loginNm==""){
			inputChkArr.push("「入力者名」は入力必須です。");
		}
		if(lineNm==""){
			inputChkArr.push("「ライン名」は入力必須です。");
		}
		if(processNo==""){
			inputChkArr.push("「工程NO」は入力必須です。");
		}
		if(equipmentCd==""){
			inputChkArr.push("「設備機番」は入力必須です。");
		}
		if(startTime==""){
			inputChkArr.push("「作業開始」は入力必須です。");
		}
		if(endTime==""){
			inputChkArr.push("「作業終了」は入力必須です。");
		}
		if(lossNm==""){
			inputChkArr.push("「ロス区分」は入力必須です。");
		}
		if(workNm1==""){
			inputChkArr.push("「作業内容①」は入力必須です。");
		}
		if(inputChkArr.length > 0){
			inputChkMsg = inputChkArr.join("<br>");
		}
		inputChk(inputChkMsg);
		return;
	}else{
		var submitType  = document.getElementById('submitType');
		submitType.value = "update";
		frm.submit();
	}
*/
}
//===========================================
// 削除ボタン押下
//===========================================
function doDelete(){


	var adminKbn     = document.getElementById('adminKbn').value;
	//登録者権限チェック
	if(adminKbn == "2"||adminKbn == "1"){
		//権限が一般の場合
		inputChk2();
		return;
	}


	//フォームタグのオブジェクトを取得
	var frm = document.getElementById("F1");
	var humanId     = document.getElementById('humanId').value;
	if(humanId==""){
		existsDatatChk('delete');
		return;
	}else{
		var submitType  = document.getElementById('submitType');
		submitType.value = "delete";
		frm.submit();
	}
}

//===========================================
//生産管理板移動
//===========================================
function doSrc2000(flg){
	var submitType  = document.getElementById('submitType');
	submitType.value = "src2000";
	 back();

	//backPage
	document.getElementById('backPage').value = "act1100/act1100";

//	alert(document.getElementById('SearchHumanId').value);

	if(flg =="1"){
		document.getElementById('SearchHumanId').value = "";
		document.getElementById('lineCd').value = "";

	}


	var frm = document.getElementById("F1");
	frm.submit();
}

</script>


</head>

<body onLoad="onInit()">
<div>
<form name="F1" id="F1" action="act1100.fw" method="post" class="frmMain">
<table style="">
	<!--HEADER TITLE START -->
	<tr style = "background-color:#e1e1e1;  font-weight: bold;  border-bottom:1px solid #e1e1e1; background: -webkit-gradient(linear, left top, left bottom, from(#e1e1e1), to(#ffffff));　 ">
		<td class ="header_tbl" style = "font-size:28px; height:90px;" width="300px" align = "center">
			<div class="headerTitle" >　Production Control Board System</div>
		</td>
		<td align = "right">
		    <!-- <button id='btn_date' class='date' onClick='dateButton_onClick(this);'><%=actionDate %></button>　　 -->
			<input type='date'  class='date2' id='btnDate' name='date' value="<%=actionDate %>" onblur="document.getElementById('submitType').value='';document.getElementById('F1').submit();">　
			<input type='hidden' id='date' value='<%=actionDate %>'>
			<input type="button" class="updateDel" onclick="doMessage('update');" value="edit">　
			<input type="button" class="updateDel" onclick="doMessage('delete');" value="delete">　
			<button class="seisan" onclick="doSrc2000('1');">Production control</button>　
			<button onclick="nextPageJump('top1000');">menu</button>　
		</td>
	</tr>
	<!--HEADER TITLE END -->

	<!--HEADER2 TITLE START -->
	<tr style = "background-color:#D6D7DD; width:100%; border-bottom:1px solid #aaa;">
		<td  style = "font-size:28px; text-shadow:3px 3px #666; 	color:#aaa;" align = "left">
			　　Operation list
		</td>
		<td style = "font-size : 24px; color: #FF6633; 	text-shadow:2px 2px black; font-weight: bold;">
		</td>
	</tr>
	<!--HEADER2 TITLE END -->


	<tr>
		<!--設備情報 TITLE START -->
		<td>
			<div id='title_list_wrapper' class='title_list_wrapper'>
				<div id='title_list_scroller' class='title_list_scroller'>
					<table>
						<%
							//java側から渡された設備情報を変数に格納する
							ArrayList<Act1100Bean.humanData> humanList = formBean.getHumanList();
							//取得できた情報の分だけループする
							for(int i=0; i<humanList.size(); i++){
						%>
							<tr>
								<td id="No.<%=i %>" ontouchstart="resetColorCurrentNo(<%=i %>);scroll1.setting(this);">
								<input type="hidden" id="No.<%=i %>HumanId" value="<%=humanList.get(i).human_id %>">
								<input type="hidden" id="No.<%=i %>DrpLoginNm" value="<%=humanList.get(i).emp_cd %>">
								<input type="hidden" id="No.<%=i %>DrpLineNm" value="<%=humanList.get(i).line_cd %>">
								<input type="hidden" id="No.<%=i %>DrpProcessNo" value="<%=humanList.get(i).process_cd %>">
								<input type="hidden" id="No.<%=i %>DrpEquipmentCd" value="<%=humanList.get(i).equipment_cd %>">
								<input type="hidden" id="No.<%=i %>TxtStartTime" value="<%=humanList.get(i).getStartTimeHM() %>">
								<input type="hidden" id="No.<%=i %>TxtEndTime" value="<%=humanList.get(i).getEndTimeHM() %>">
								<input type="hidden" id="No.<%=i %>DrpLossNm" value="<%=humanList.get(i).loss_cd %>">
								<input type="hidden" id="No.<%=i %>DrpWorkNm1" value="<%=humanList.get(i).work_cd1 %>">
								<input type="hidden" id="No.<%=i %>DrpWorkNm2" value="<%=humanList.get(i).getWorkCd2() %>">
								<input type="hidden" id="No.<%=i %>TxtNote" value="<%=FwCom.nullToBlank(humanList.get(i).note) %>">
								<%=humanList.get(i).line_nm %>【<%=humanList.get(i).process_cd %>】 <br>設備機番<%=humanList.get(i).equipment_cd %><br>【<%=FwCom.nullToBlank(humanList.get(i).getStartTimeHM()) %>】<%=FwCom.nullToBlank(humanList.get(i).getWorkTimeHM()) %><br>【<%=humanList.get(i).work_nm1 %>】
								</td>
							</tr>
						<%
							}
						%>

					</table>
				</div>
			</div>
		</td>
		<!--設備情報 TITLE END -->

		<td class="right" >
			<table width ="100%" height="520px">
				<tr>
					<td align="right"  class="selTitle">Worker name</td>
					<td align = "left" colspan = "2" >
						<select name="drpLoginNm"  id="drpLoginNm"  style="width:200px" >
							<option value=''></option>
							<%
							Act1100Bean.PullData[] inputEmpPullList = formBean.getInputEmpPullList();
							for (int i = 0; inputEmpPullList != null && i < inputEmpPullList.length; i++) {
								Act1100Bean.PullData data = inputEmpPullList[i];
							%>
							<option value='<%=data.key%>' <%=data.selected%> ><%=data.value%></option>
							<%}%>
						</select>
						<input type="hidden" name="adminKbn" id="adminKbn" value="<%=formBean.getAdminKbn()%>">
					</td>
					<td>
						<div align= "right" data-type="horizontal" data-role="controlgroup">
							<input type="button" class="button" style="width:80px; height:50px;" onclick="previ();" value=" ＜ ">　
							<input type="button" class="button" style="width:80px; height:50px;" onclick="next();" value=" ＞ ">　　
						</div>
					</td>
				</tr>




				<tr>
					<td align="right"  class="selTitle">Line name</td>
					<td align = "left"  >
						<select name="drpLineNm"  id="drpLineNm"  style="width:200px" onChange="lineSideDell(this);">
							<option value=''></option>
							<%
							Act1100Bean.PullData[] lineCdPullList = formBean.getLineCdPullList();
							for (int i = 0; lineCdPullList != null && i < lineCdPullList.length; i++) {
								Act1100Bean.PullData data = lineCdPullList[i];
							%>
							<option value='<%=data.key%>' <%=data.selected%> ><%=data.value%></option>
							<%}%>
						</select>
					</td>



					<td align="right"   class="selTitle" >Process No</td>
					<td align = "left"  >
						<select name="drpProcessNo"  id="drpProcessNo"   style="width:200px" onTouchstart="lineChk('drpProcessNo');"  onChange="processSideDell(this);">
							<option value=''></option>
							<%
							Act1100Bean.PullData[] processCdPullList = formBean.getProcessCdPullList();
							for (int i = 0; processCdPullList != null && i < processCdPullList.length; i++) {
								Act1100Bean.PullData data = processCdPullList[i];
							%>
							<option value='<%=data.key%>' <%=data.selected%> ><%=data.value%></option>
							<%}%>
						</select>
					</td>
				</tr>
				<tr>
					<td align="right"   class="selTitle">Equipment No</td>
					<td align = "left"  >
						<select name="drpEquipmentCd"  id="drpEquipmentCd"  style="width:200px" onTouchstart="lineChk('drpEquipmentCd');" onChange="equipSideDell(this);">
							<option value=''></option>
							<%
							Act1100Bean.PullData[] equipmentCdPullList = formBean.getEquipmentCdPullList();
							for (int i = 0; equipmentCdPullList != null && i < equipmentCdPullList.length; i++) {
								Act1100Bean.PullData data = equipmentCdPullList[i];
							%>
							<option value='<%=data.key%>' <%=data.selected%> ><%=data.value%></option>
							<%}%>
						</select>
					</td>
				</tr>



				<!-- 作業開始、作業終了　START -->
				<tr>
					<td align="right"  class="selTitle">Operation start time</td>
					<td >
						<table>
							<tr>
								<td>
									<input type="time"  class="operTime" name="txtStartTime" id="txtStartTime" style="width: 80px; height:33px; font-size:24px; color:blue;"  value="">
									<input name="btnStartNow" type="button" onclick="nowTime('txtStartTime')" class="nowTime"  value="NOW" />
								</td>
								<td>

								</td>
							</tr>
						</table>
					</td>

					<td align="right"  class="selTitle">End time</td>
					<td>
						<table>
							<tr>
								<td>
									<input type="time"  class="operTime" name="txtEndTime" id="txtEndTime" style="width: 80px; height:33px; font-size:24px; color:blue;"  value="">
									<input  id="btnEndNow" type="button" onclick="nowTime('txtEndTime')" class="nowTime"  value="NOW" />
								</td>
								<td>
								</td>
							</tr>
						</table>
					</td>
				</tr>
				<!-- 作業開始、作業終了　END -->


				<!--ロス区分　START -->
				<tr>
					<td align="right"  class="selTitle">Loss type</td>
					<td align = "left"  >
						<select name="drpLossNm"  id="drpLossNm"  style="width:230px" onChange="lossSideDell(this);">
							<option value=''></option>
							<%
							Act1100Bean.PullData[] lossPullList = formBean.getLossPullList();
							for (int i = 0; lossPullList != null && i < lossPullList.length; i++) {
								Act1100Bean.PullData data = lossPullList[i];
							%>
							<option value='<%=data.key%>' <%=data.selected%> ><%=data.value%></option>
							<%}%>
						</select>
					</td>
				</tr>
				<tr>
					<td align="right"  class="selTitle" >Operation method(1)</td>
					<td align = "left"   colspan ="1" >
						<select id="drpWorkNm1"  style="width:230px" onChange="Work1SideDell(this);">
							<option value=''></option>
							<%
							Act1100Bean.PullData[] workNm1PullList = formBean.getWorkNm1PullList();
							for (int i = 0; workNm1PullList != null && i < workNm1PullList.length; i++) {
								Act1100Bean.PullData data = workNm1PullList[i];
							%>
							<option value='<%=data.key2%>,<%=data.key%>' <%=data.selected%> ><%=data.value%></option>
							<%}%>
						</select>
						<!-- 作業内容①の値格納用 -->
						<input type="hidden" name="drpWorkNm1" id="postDrpWorkNm1" value="">
					</td>

					<td align="right"  class="selTitle">Operation method(2)</td>
					<td align = "left"   colspan ="1" >
						<select id="drpWorkNm2" multiple  style="width:180px" onTouchstart="lineChk2('drpProcessNo');">
							<%
							Act1100Bean.PullData[] workNm2PullList = formBean.getWorkNm2PullList();
							for (int i = 0; workNm2PullList != null && i < workNm2PullList.length; i++) {
								Act1100Bean.PullData data = workNm2PullList[i];
							%>
							<option value='<%=data.key%>' <%=data.selected%> ><%=data.value%></option>
							<%}%>
						</select>
						<input type="hidden" name="drpWorkNm2" id="postDrpWorkNm2" value="">
					</td>


				</tr>
				<!--作業内容①、②　END -->


				<!-- 備考　START -->
				<tr>
					<td align = "right" valign="top"  class="selTitle">Remarks(Free space)</td>

					<td colspan = "3">
						<textarea style = "font-size:18pt; color:blue;"rows="2" cols="40" name="txtNote" id="txtNote" maxlength = "100" ></textarea>
					</td>
				</tr>
				<!-- 備考　END -->


			</table>
		</td>
	</tr>
</table>
<input type="hidden" id="nextPage" name="nextPage" value="">
<input type="hidden" name="submitType" id="submitType" value="">
<input type="hidden" name="humanId" id="humanId" value="">
<input type="hidden" name="workTime" id="workTime">
<input type="hidden" name="regist" id="regist" value="<%=formBean.getRegist()%>">
<input type="hidden" name="regist" id="registType" value="<%=formBean.getRegistType()%>">
<input type="hidden" name="backPage" id="backPage" value="">
<input type="hidden" name="SearchHumanId" id="SearchHumanId" value="<%=formBean.getSearchHumanId()%>">
<input type="hidden" name="lineCd" id="lineCd" value="<%=formBean.getLineCd()%>">

</form>
</div>
	<div class="addDel" id = "addDel" style="display:none; " ></div>
	<div class="addDel_Btn" id = "addDel_Btn" style="display:none;" ></div>

	<div id="allbackgr" class="allbackgr" style="display:none;"></div>

	<div class="opBoardBtn" id = "opBoardBtn" style="display:none;" ></div>
	<div class="opBoardButtom" id = "opBoardButtom" style="display:none;" ></div>
	<div class="opBoardTop" id = "opBoardTop" style="display:none; font-size:22px;">　警告　</div>
	<div class="opBoard" id = "opBoard" style="display:none;"></div>

	<div class='footer' align='right'><img src='../../common/img/logo20110208.png' height='44px'></div>

</body>
</html>